package com.hyc.seckillsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.data.annotation.Id;


/**
 * @projectName: seckillsystem
 * @package: com.hyc.seckillsystem.vo
 * @className: goodvo
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2022/3/6 23:14
 * @version: 1.0
 */
@TableName("goods")
public class goods {
    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String goods_id;
    private String goods_name;
    private String goodtype;
    private double price;
    private String img_path;
    @TableField(exist = false)
    private SeckillGoods seckillgoods;

    @Override
    public String toString() {
        return "goods{" +
                "id=" + id +
                ", goods_id='" + goods_id + '\'' +
                ", goods_name='" + goods_name + '\'' +
                ", goodtype='" + goodtype + '\'' +
                ", price=" + price +
                ", img_path='" + img_path + '\'' +
                '}';
    }

    public goods() {
    }

    public goods(Integer id, String goods_id, String goods_name, String goodtype, double price, String img_path) {
        this.id = id;
        this.goods_id = goods_id;
        this.goods_name = goods_name;
        this.goodtype = goodtype;
        this.price = price;
        this.img_path = img_path;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(String goods_id) {
        this.goods_id = goods_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoodtype() {
        return goodtype;
    }

    public void setGoodtype(String goodtype) {
        this.goodtype = goodtype;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    public goods(Integer id, String goods_id, String goods_name, String goodtype, double price, String img_path, SeckillGoods seckillGoods) {
        this.id = id;
        this.goods_id = goods_id;
        this.goods_name = goods_name;
        this.goodtype = goodtype;
        this.price = price;
        this.img_path = img_path;
        this.seckillgoods = seckillGoods;
    }

    public SeckillGoods getSeckillGoods() {
        return seckillgoods;
    }

    public void setSeckillGoods(SeckillGoods seckillGoods) {
        this.seckillgoods = seckillGoods;
    }
}
